const Koa = require('koa')
const app = new Koa()
const bodyParser = require('koa-bodyparser')
// 引入路由
const userRouter = require('./router/user')


// 必须注册在路由的上方
app.use(bodyParser())
// 路由注册 
app.use(userRouter.routes())

app.listen(9999, () => { console.log(9999) })